//
//  DoorHeadView.m
//  RONGAO
//
//  Created by wei wang on 2017/2/23.
//  Copyright © 2017年 wei wang. All rights reserved.
//

#import "DoorHeadView.h"

@implementation DoorHeadView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (instancetype)init{
    
    if ([super init]) {
        
        [self masLayoutSubview];
    }
    return self;
}

- (void)masLayoutSubview{
    
    __weak UIView *superView = self;
    [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.centerY.mas_equalTo(superView.mas_centerY);
        make.left.mas_equalTo(superView.mas_left).mas_offset(8);
        
    }];
}

- (UILabel *)titleLabel{
    
    if (!_titleLabel) {
        
        _titleLabel = [[UILabel alloc] init];
        _titleLabel.text = @"说明：点击下面图标可以使设备打开";
        _titleLabel.textColor = [UIColor colorWithHexString:@"#56504f"];
        [_titleLabel setFont:[UIFont systemFontOfSize:14.0f]];
        [self addSubview:_titleLabel];
        
    }
    
    return _titleLabel;
}



@end
